package com.oa.validate;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface Str {
	
	boolean notNull() default true;
	
	int minLength() default -1;
	
	int maxLength() default -1;
	
	String key() default "nameMessage";
	
	String mesName() default "名称";
	
}
